package  com.ylb.rent.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import  com.ylb.rent.entity.ApartmentStuff;
import org.springframework.stereotype.Repository;

/**
 * 公寓设施Mapper接口
 * 
 * @author ylb
 * @date 2023-06-29
 */
@Repository
public interface ApartmentStuffMapper extends BaseMapper<ApartmentStuff>
{
    /**
     * 查询公寓设施
     * 
     * @param id 公寓设施主键
     * @return 公寓设施
     */
    public ApartmentStuff selectApartmentStuffById(Long id);

    /**
     * 查询公寓设施列表
     * 
     * @param apartmentStuff 公寓设施
     * @return 公寓设施集合
     */
    public List<ApartmentStuff> selectApartmentStuffList(ApartmentStuff apartmentStuff);

    /**
     * 新增公寓设施
     * 
     * @param apartmentStuff 公寓设施
     * @return 结果
     */
    public int insertApartmentStuff(ApartmentStuff apartmentStuff);

    /**
     * 修改公寓设施
     * 
     * @param apartmentStuff 公寓设施
     * @return 结果
     */
    public int updateApartmentStuff(ApartmentStuff apartmentStuff);

    /**
     * 删除公寓设施
     * 
     * @param id 公寓设施主键
     * @return 结果
     */
    public int deleteApartmentStuffById(Long id);

    /**
     * 批量删除公寓设施
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteApartmentStuffByIds(Long[] ids);
}
